﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>注册</title>
        <script language="javascript" type="text/javascript">
    function changeCode() {   
        var imgNode = document.getElementById("vimg");   
        imgNode.src = "../Web/handler/WaterMark.ashx?t=" + (new Date()).valueOf();  // 这里加个时间的参数是为了防止浏览器缓存的问题   
    }  
    </script>
    <link href="Css/register.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
      <div><img alt="" src="Image/top.jpg" />
      </div>  
    <div id="zhuche">
    
    <p>
        <img alt="" src="Image/user.gif" />&nbsp;&nbsp;&nbsp;&nbsp;注册网络硬盘&nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl ="~/Image/link_back.gif" PostBackUrl ="~/Default.aspx" />
    </p>
    <p >
    注:带<a class ="xing">*</a>必须填
    </p>
    <p>
    用 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 名：<asp:TextBox ID="Txtidno" runat="server" CssClass ="textbox2" ValidationGroup ="b"  ></asp:TextBox>
        <a class ="xing">*</a>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"   Text ="*"   ErrorMessage="用户名必须输入"  ControlToValidate ="Txtidno"  ValidationGroup ="b" ></asp:RequiredFieldValidator>

        <asp:Button ID="Button1" runat="server" Text="检查用户名是否被注册" 
             onclick="Button1_Click" />
        <asp:ValidationSummary ID="ValidationSummary2" runat="server"  ShowSummary ="false"  ShowMessageBox ="true"  ValidationGroup="c"/>
    </p>
    <p>
    密 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码： 
        <asp:TextBox ID="Txtpwd" runat="server" ValidationGroup ="b"  CssClass ="textbox2" TextMode="Password" ></asp:TextBox><a class ="xing">*</a>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text ="*" ErrorMessage="密码必须输入"  ControlToValidate ="Txtpwd"  ValidationGroup ="b"></asp:RequiredFieldValidator>
    </p>
    <p>
    密&nbsp;&nbsp;码&nbsp;&nbsp;&nbsp;确&nbsp;&nbsp;&nbsp;认：<asp:TextBox ID="Txtpwd2" runat="server" ValidationGroup ="b"  CssClass ="textbox2" TextMode="Password" ></asp:TextBox><a class ="xing">*</a>
        <asp:CompareValidator ID="CompareValidator1" runat="server"  Text ="*"
            ErrorMessage="密码不一致" ControlToCompare="Txtpwd2" 
            ControlToValidate="Txtpwd" ValidationGroup ="b"></asp:CompareValidator>
    </p>
    <p>
    密码提示问题：<asp:TextBox ID="Txtquestion" runat="server" ValidationGroup ="b"  CssClass ="textbox2"></asp:TextBox><a class ="xing">*</a>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text ="*" ErrorMessage="密码提示问题必须输入" ControlToValidate ="Txtquestion"  ValidationGroup ="b"></asp:RequiredFieldValidator>
    </p>
    <p>
    密码提示答案：<asp:TextBox ID="Txtanswer" runat="server" ValidationGroup ="b"  CssClass ="textbox2"></asp:TextBox><a class ="xing">*</a>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"  Text ="*" ErrorMessage="密码提示答案必须输入" ControlToValidate ="Txtanswer"  ValidationGroup ="b"></asp:RequiredFieldValidator>
    </p>
    <p>
    电&nbsp;&nbsp;子&nbsp;&nbsp;&nbsp;邮&nbsp;&nbsp;&nbsp;箱：<asp:TextBox ID="Txtemail" runat="server" ValidationGroup ="b"  CssClass ="textbox2"></asp:TextBox><a class ="xing">*</a>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  Text ="*" ErrorMessage="邮箱必须输入" ControlToValidate ="Txtemail"  ValidationGroup ="b"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            text="*"  ErrorMessage="邮箱格式不正确" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="Txtemail" ValidationGroup="b"></asp:RegularExpressionValidator >
    </p>
    <p>
    性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<asp:RadioButton ID="Radiogender1" Text="保密" GroupName ="c" runat="server"  Checked="True"  CssClass ="textbox2" />
    <asp:RadioButton ID="Radiogender2" Text="男" GroupName ="c" runat="server" />
    <asp:RadioButton ID="Radiogender3" Text="女" GroupName ="c" runat="server" />
    </p>
    <p>
    Q &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q：<asp:TextBox ID="Txtqq" runat="server" CssClass ="textbox2" ></asp:TextBox>
    </p>
    <p>
    真&nbsp;&nbsp;&nbsp实&nbsp;&nbsp;&nbsp;姓&nbsp;&nbsp;&nbsp;名：<asp:TextBox ID="Txtname" runat="server" CssClass ="textbox2" ></asp:TextBox>
    </p>
    <p>
    我的空间介绍:&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="Txtremark" runat="server" CssClass ="textbox3" TextMode="MultiLine"></asp:TextBox>
    </p>
    <p>
        验 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;证 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码： &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../Web/handler/WaterMark.ashx" id="vimg" alt="" onclick="changeCode()"/>      
        <asp:TextBox ID="txtCode" runat="server" CssClass="textbox4"></asp:TextBox ><a class ="xing">*</a>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Text ="*" ErrorMessage="验证码必须输入" ControlToValidate="txtCode" ValidationGroup ="b"></asp:RequiredFieldValidator>
    </p>
  <p>
   <asp:Button ID="BtnRegister" runat="server" Text="现在注册" ValidationGroup ="b"  
           CssClass ="btn" onclick="BtnRegister_Click"/>
      <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox ="true" ShowSummary ="false" ValidationGroup ="b"   runat="server" />      
  </p>
  </div> 
    </form>
</body>
</html>
